package qldc.pm.tiensu.model;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.DateUtil;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import com.liferay.portal.util.PortalUtil;

import qldc.pm.tiensu.service.ClpSerializer;
import qldc.pm.tiensu.service.PhieuThongTinVeNguoiCoTienSuLocalServiceUtil;

import java.io.Serializable;

import java.lang.reflect.Method;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;


public class PhieuThongTinVeNguoiCoTienSuClp extends BaseModelImpl<PhieuThongTinVeNguoiCoTienSu>
    implements PhieuThongTinVeNguoiCoTienSu {
    private long _phieuThongTinVeNguoiCoTienSuId;
    private long _userId;
    private String _userUuid;
    private String _userName;
    private Date _createDate;
    private Date _modifiedDate;
    private long _tienSuId;
    private String _maSoHoSoTienSuTuToaAn;
    private String _nguoiTrichLuc;
    private String _thamPhan;
    private String _soDinhDanhCaNhan;
    private String _chuThich;
    private String _noiTamTruDiaChi;
    private long _noiTamTruTinhId;
    private long _noiTamTruQuanHuyenId;
    private long _noiTamTruPhuongXaId;
    private String _noiThuongTruDiaChi;
    private long _noiThuongTruTinhId;
    private long _noiThuongTruQuanHuyenId;
    private long _noiThuongTruPhuongXaId;
    private String _hoTenVoHoacChong;
    private String _hoTenCha;
    private String _hoTenMe;
    private BaseModel<?> _phieuThongTinVeNguoiCoTienSuRemoteModel;

    public PhieuThongTinVeNguoiCoTienSuClp() {
    }

    @Override
    public Class<?> getModelClass() {
        return PhieuThongTinVeNguoiCoTienSu.class;
    }

    @Override
    public String getModelClassName() {
        return PhieuThongTinVeNguoiCoTienSu.class.getName();
    }

    @Override
    public long getPrimaryKey() {
        return _phieuThongTinVeNguoiCoTienSuId;
    }

    @Override
    public void setPrimaryKey(long primaryKey) {
        setPhieuThongTinVeNguoiCoTienSuId(primaryKey);
    }

    @Override
    public Serializable getPrimaryKeyObj() {
        return _phieuThongTinVeNguoiCoTienSuId;
    }

    @Override
    public void setPrimaryKeyObj(Serializable primaryKeyObj) {
        setPrimaryKey(((Long) primaryKeyObj).longValue());
    }

    @Override
    public Map<String, Object> getModelAttributes() {
        Map<String, Object> attributes = new HashMap<String, Object>();

        attributes.put("phieuThongTinVeNguoiCoTienSuId",
            getPhieuThongTinVeNguoiCoTienSuId());
        attributes.put("userId", getUserId());
        attributes.put("userName", getUserName());
        attributes.put("createDate", getCreateDate());
        attributes.put("modifiedDate", getModifiedDate());
        attributes.put("tienSuId", getTienSuId());
        attributes.put("maSoHoSoTienSuTuToaAn", getMaSoHoSoTienSuTuToaAn());
        attributes.put("nguoiTrichLuc", getNguoiTrichLuc());
        attributes.put("thamPhan", getThamPhan());
        attributes.put("soDinhDanhCaNhan", getSoDinhDanhCaNhan());
        attributes.put("chuThich", getChuThich());
        attributes.put("noiTamTruDiaChi", getNoiTamTruDiaChi());
        attributes.put("noiTamTruTinhId", getNoiTamTruTinhId());
        attributes.put("noiTamTruQuanHuyenId", getNoiTamTruQuanHuyenId());
        attributes.put("noiTamTruPhuongXaId", getNoiTamTruPhuongXaId());
        attributes.put("noiThuongTruDiaChi", getNoiThuongTruDiaChi());
        attributes.put("noiThuongTruTinhId", getNoiThuongTruTinhId());
        attributes.put("noiThuongTruQuanHuyenId", getNoiThuongTruQuanHuyenId());
        attributes.put("noiThuongTruPhuongXaId", getNoiThuongTruPhuongXaId());
        attributes.put("hoTenVoHoacChong", getHoTenVoHoacChong());
        attributes.put("hoTenCha", getHoTenCha());
        attributes.put("hoTenMe", getHoTenMe());

        return attributes;
    }

    @Override
    public void setModelAttributes(Map<String, Object> attributes) {
        Long phieuThongTinVeNguoiCoTienSuId = (Long) attributes.get(
                "phieuThongTinVeNguoiCoTienSuId");

        if (phieuThongTinVeNguoiCoTienSuId != null) {
            setPhieuThongTinVeNguoiCoTienSuId(phieuThongTinVeNguoiCoTienSuId);
        }

        Long userId = (Long) attributes.get("userId");

        if (userId != null) {
            setUserId(userId);
        }

        String userName = (String) attributes.get("userName");

        if (userName != null) {
            setUserName(userName);
        }

        Date createDate = (Date) attributes.get("createDate");

        if (createDate != null) {
            setCreateDate(createDate);
        }

        Date modifiedDate = (Date) attributes.get("modifiedDate");

        if (modifiedDate != null) {
            setModifiedDate(modifiedDate);
        }

        Long tienSuId = (Long) attributes.get("tienSuId");

        if (tienSuId != null) {
            setTienSuId(tienSuId);
        }

        String maSoHoSoTienSuTuToaAn = (String) attributes.get(
                "maSoHoSoTienSuTuToaAn");

        if (maSoHoSoTienSuTuToaAn != null) {
            setMaSoHoSoTienSuTuToaAn(maSoHoSoTienSuTuToaAn);
        }

        String nguoiTrichLuc = (String) attributes.get("nguoiTrichLuc");

        if (nguoiTrichLuc != null) {
            setNguoiTrichLuc(nguoiTrichLuc);
        }

        String thamPhan = (String) attributes.get("thamPhan");

        if (thamPhan != null) {
            setThamPhan(thamPhan);
        }

        String soDinhDanhCaNhan = (String) attributes.get("soDinhDanhCaNhan");

        if (soDinhDanhCaNhan != null) {
            setSoDinhDanhCaNhan(soDinhDanhCaNhan);
        }

        String chuThich = (String) attributes.get("chuThich");

        if (chuThich != null) {
            setChuThich(chuThich);
        }

        String noiTamTruDiaChi = (String) attributes.get("noiTamTruDiaChi");

        if (noiTamTruDiaChi != null) {
            setNoiTamTruDiaChi(noiTamTruDiaChi);
        }

        Long noiTamTruTinhId = (Long) attributes.get("noiTamTruTinhId");

        if (noiTamTruTinhId != null) {
            setNoiTamTruTinhId(noiTamTruTinhId);
        }

        Long noiTamTruQuanHuyenId = (Long) attributes.get(
                "noiTamTruQuanHuyenId");

        if (noiTamTruQuanHuyenId != null) {
            setNoiTamTruQuanHuyenId(noiTamTruQuanHuyenId);
        }

        Long noiTamTruPhuongXaId = (Long) attributes.get("noiTamTruPhuongXaId");

        if (noiTamTruPhuongXaId != null) {
            setNoiTamTruPhuongXaId(noiTamTruPhuongXaId);
        }

        String noiThuongTruDiaChi = (String) attributes.get(
                "noiThuongTruDiaChi");

        if (noiThuongTruDiaChi != null) {
            setNoiThuongTruDiaChi(noiThuongTruDiaChi);
        }

        Long noiThuongTruTinhId = (Long) attributes.get("noiThuongTruTinhId");

        if (noiThuongTruTinhId != null) {
            setNoiThuongTruTinhId(noiThuongTruTinhId);
        }

        Long noiThuongTruQuanHuyenId = (Long) attributes.get(
                "noiThuongTruQuanHuyenId");

        if (noiThuongTruQuanHuyenId != null) {
            setNoiThuongTruQuanHuyenId(noiThuongTruQuanHuyenId);
        }

        Long noiThuongTruPhuongXaId = (Long) attributes.get(
                "noiThuongTruPhuongXaId");

        if (noiThuongTruPhuongXaId != null) {
            setNoiThuongTruPhuongXaId(noiThuongTruPhuongXaId);
        }

        String hoTenVoHoacChong = (String) attributes.get("hoTenVoHoacChong");

        if (hoTenVoHoacChong != null) {
            setHoTenVoHoacChong(hoTenVoHoacChong);
        }

        String hoTenCha = (String) attributes.get("hoTenCha");

        if (hoTenCha != null) {
            setHoTenCha(hoTenCha);
        }

        String hoTenMe = (String) attributes.get("hoTenMe");

        if (hoTenMe != null) {
            setHoTenMe(hoTenMe);
        }
    }

    @Override
    public long getPhieuThongTinVeNguoiCoTienSuId() {
        return _phieuThongTinVeNguoiCoTienSuId;
    }

    @Override
    public void setPhieuThongTinVeNguoiCoTienSuId(
        long phieuThongTinVeNguoiCoTienSuId) {
        _phieuThongTinVeNguoiCoTienSuId = phieuThongTinVeNguoiCoTienSuId;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setPhieuThongTinVeNguoiCoTienSuId",
                        long.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    phieuThongTinVeNguoiCoTienSuId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getUserId() {
        return _userId;
    }

    @Override
    public void setUserId(long userId) {
        _userId = userId;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setUserId", long.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel, userId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getUserUuid() throws SystemException {
        return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
    }

    @Override
    public void setUserUuid(String userUuid) {
        _userUuid = userUuid;
    }

    @Override
    public String getUserName() {
        return _userName;
    }

    @Override
    public void setUserName(String userName) {
        _userName = userName;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setUserName", String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel, userName);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getCreateDate() {
        return _createDate;
    }

    @Override
    public void setCreateDate(Date createDate) {
        _createDate = createDate;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setCreateDate", Date.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    createDate);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getModifiedDate() {
        return _modifiedDate;
    }

    @Override
    public void setModifiedDate(Date modifiedDate) {
        _modifiedDate = modifiedDate;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setModifiedDate", Date.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    modifiedDate);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getTienSuId() {
        return _tienSuId;
    }

    @Override
    public void setTienSuId(long tienSuId) {
        _tienSuId = tienSuId;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setTienSuId", long.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel, tienSuId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getMaSoHoSoTienSuTuToaAn() {
        return _maSoHoSoTienSuTuToaAn;
    }

    @Override
    public void setMaSoHoSoTienSuTuToaAn(String maSoHoSoTienSuTuToaAn) {
        _maSoHoSoTienSuTuToaAn = maSoHoSoTienSuTuToaAn;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setMaSoHoSoTienSuTuToaAn",
                        String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    maSoHoSoTienSuTuToaAn);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNguoiTrichLuc() {
        return _nguoiTrichLuc;
    }

    @Override
    public void setNguoiTrichLuc(String nguoiTrichLuc) {
        _nguoiTrichLuc = nguoiTrichLuc;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setNguoiTrichLuc", String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    nguoiTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getThamPhan() {
        return _thamPhan;
    }

    @Override
    public void setThamPhan(String thamPhan) {
        _thamPhan = thamPhan;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setThamPhan", String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel, thamPhan);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getSoDinhDanhCaNhan() {
        return _soDinhDanhCaNhan;
    }

    @Override
    public void setSoDinhDanhCaNhan(String soDinhDanhCaNhan) {
        _soDinhDanhCaNhan = soDinhDanhCaNhan;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setSoDinhDanhCaNhan",
                        String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    soDinhDanhCaNhan);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getChuThich() {
        return _chuThich;
    }

    @Override
    public void setChuThich(String chuThich) {
        _chuThich = chuThich;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setChuThich", String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel, chuThich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNoiTamTruDiaChi() {
        return _noiTamTruDiaChi;
    }

    @Override
    public void setNoiTamTruDiaChi(String noiTamTruDiaChi) {
        _noiTamTruDiaChi = noiTamTruDiaChi;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiTamTruDiaChi",
                        String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    noiTamTruDiaChi);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiTamTruTinhId() {
        return _noiTamTruTinhId;
    }

    @Override
    public void setNoiTamTruTinhId(long noiTamTruTinhId) {
        _noiTamTruTinhId = noiTamTruTinhId;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiTamTruTinhId", long.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    noiTamTruTinhId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiTamTruQuanHuyenId() {
        return _noiTamTruQuanHuyenId;
    }

    @Override
    public void setNoiTamTruQuanHuyenId(long noiTamTruQuanHuyenId) {
        _noiTamTruQuanHuyenId = noiTamTruQuanHuyenId;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiTamTruQuanHuyenId",
                        long.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    noiTamTruQuanHuyenId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiTamTruPhuongXaId() {
        return _noiTamTruPhuongXaId;
    }

    @Override
    public void setNoiTamTruPhuongXaId(long noiTamTruPhuongXaId) {
        _noiTamTruPhuongXaId = noiTamTruPhuongXaId;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiTamTruPhuongXaId",
                        long.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    noiTamTruPhuongXaId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNoiThuongTruDiaChi() {
        return _noiThuongTruDiaChi;
    }

    @Override
    public void setNoiThuongTruDiaChi(String noiThuongTruDiaChi) {
        _noiThuongTruDiaChi = noiThuongTruDiaChi;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiThuongTruDiaChi",
                        String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    noiThuongTruDiaChi);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiThuongTruTinhId() {
        return _noiThuongTruTinhId;
    }

    @Override
    public void setNoiThuongTruTinhId(long noiThuongTruTinhId) {
        _noiThuongTruTinhId = noiThuongTruTinhId;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiThuongTruTinhId",
                        long.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    noiThuongTruTinhId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiThuongTruQuanHuyenId() {
        return _noiThuongTruQuanHuyenId;
    }

    @Override
    public void setNoiThuongTruQuanHuyenId(long noiThuongTruQuanHuyenId) {
        _noiThuongTruQuanHuyenId = noiThuongTruQuanHuyenId;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiThuongTruQuanHuyenId",
                        long.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    noiThuongTruQuanHuyenId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiThuongTruPhuongXaId() {
        return _noiThuongTruPhuongXaId;
    }

    @Override
    public void setNoiThuongTruPhuongXaId(long noiThuongTruPhuongXaId) {
        _noiThuongTruPhuongXaId = noiThuongTruPhuongXaId;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiThuongTruPhuongXaId",
                        long.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    noiThuongTruPhuongXaId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoTenVoHoacChong() {
        return _hoTenVoHoacChong;
    }

    @Override
    public void setHoTenVoHoacChong(String hoTenVoHoacChong) {
        _hoTenVoHoacChong = hoTenVoHoacChong;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setHoTenVoHoacChong",
                        String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                    hoTenVoHoacChong);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoTenCha() {
        return _hoTenCha;
    }

    @Override
    public void setHoTenCha(String hoTenCha) {
        _hoTenCha = hoTenCha;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setHoTenCha", String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel, hoTenCha);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoTenMe() {
        return _hoTenMe;
    }

    @Override
    public void setHoTenMe(String hoTenMe) {
        _hoTenMe = hoTenMe;

        if (_phieuThongTinVeNguoiCoTienSuRemoteModel != null) {
            try {
                Class<?> clazz = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

                Method method = clazz.getMethod("setHoTenMe", String.class);

                method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel, hoTenMe);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    public BaseModel<?> getPhieuThongTinVeNguoiCoTienSuRemoteModel() {
        return _phieuThongTinVeNguoiCoTienSuRemoteModel;
    }

    public void setPhieuThongTinVeNguoiCoTienSuRemoteModel(
        BaseModel<?> phieuThongTinVeNguoiCoTienSuRemoteModel) {
        _phieuThongTinVeNguoiCoTienSuRemoteModel = phieuThongTinVeNguoiCoTienSuRemoteModel;
    }

    public Object invokeOnRemoteModel(String methodName,
        Class<?>[] parameterTypes, Object[] parameterValues)
        throws Exception {
        Object[] remoteParameterValues = new Object[parameterValues.length];

        for (int i = 0; i < parameterValues.length; i++) {
            if (parameterValues[i] != null) {
                remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]);
            }
        }

        Class<?> remoteModelClass = _phieuThongTinVeNguoiCoTienSuRemoteModel.getClass();

        ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader();

        Class<?>[] remoteParameterTypes = new Class[parameterTypes.length];

        for (int i = 0; i < parameterTypes.length; i++) {
            if (parameterTypes[i].isPrimitive()) {
                remoteParameterTypes[i] = parameterTypes[i];
            } else {
                String parameterTypeName = parameterTypes[i].getName();

                remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName);
            }
        }

        Method method = remoteModelClass.getMethod(methodName,
                remoteParameterTypes);

        Object returnValue = method.invoke(_phieuThongTinVeNguoiCoTienSuRemoteModel,
                remoteParameterValues);

        if (returnValue != null) {
            returnValue = ClpSerializer.translateOutput(returnValue);
        }

        return returnValue;
    }

    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            PhieuThongTinVeNguoiCoTienSuLocalServiceUtil.addPhieuThongTinVeNguoiCoTienSu(this);
        } else {
            PhieuThongTinVeNguoiCoTienSuLocalServiceUtil.updatePhieuThongTinVeNguoiCoTienSu(this);
        }
    }

    @Override
    public PhieuThongTinVeNguoiCoTienSu toEscapedModel() {
        return (PhieuThongTinVeNguoiCoTienSu) ProxyUtil.newProxyInstance(PhieuThongTinVeNguoiCoTienSu.class.getClassLoader(),
            new Class[] { PhieuThongTinVeNguoiCoTienSu.class },
            new AutoEscapeBeanHandler(this));
    }

    @Override
    public Object clone() {
        PhieuThongTinVeNguoiCoTienSuClp clone = new PhieuThongTinVeNguoiCoTienSuClp();

        clone.setPhieuThongTinVeNguoiCoTienSuId(getPhieuThongTinVeNguoiCoTienSuId());
        clone.setUserId(getUserId());
        clone.setUserName(getUserName());
        clone.setCreateDate(getCreateDate());
        clone.setModifiedDate(getModifiedDate());
        clone.setTienSuId(getTienSuId());
        clone.setMaSoHoSoTienSuTuToaAn(getMaSoHoSoTienSuTuToaAn());
        clone.setNguoiTrichLuc(getNguoiTrichLuc());
        clone.setThamPhan(getThamPhan());
        clone.setSoDinhDanhCaNhan(getSoDinhDanhCaNhan());
        clone.setChuThich(getChuThich());
        clone.setNoiTamTruDiaChi(getNoiTamTruDiaChi());
        clone.setNoiTamTruTinhId(getNoiTamTruTinhId());
        clone.setNoiTamTruQuanHuyenId(getNoiTamTruQuanHuyenId());
        clone.setNoiTamTruPhuongXaId(getNoiTamTruPhuongXaId());
        clone.setNoiThuongTruDiaChi(getNoiThuongTruDiaChi());
        clone.setNoiThuongTruTinhId(getNoiThuongTruTinhId());
        clone.setNoiThuongTruQuanHuyenId(getNoiThuongTruQuanHuyenId());
        clone.setNoiThuongTruPhuongXaId(getNoiThuongTruPhuongXaId());
        clone.setHoTenVoHoacChong(getHoTenVoHoacChong());
        clone.setHoTenCha(getHoTenCha());
        clone.setHoTenMe(getHoTenMe());

        return clone;
    }

    @Override
    public int compareTo(
        PhieuThongTinVeNguoiCoTienSu phieuThongTinVeNguoiCoTienSu) {
        int value = 0;

        value = DateUtil.compareTo(getCreateDate(),
                phieuThongTinVeNguoiCoTienSu.getCreateDate());

        value = value * -1;

        if (value != 0) {
            return value;
        }

        return 0;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (!(obj instanceof PhieuThongTinVeNguoiCoTienSuClp)) {
            return false;
        }

        PhieuThongTinVeNguoiCoTienSuClp phieuThongTinVeNguoiCoTienSu = (PhieuThongTinVeNguoiCoTienSuClp) obj;

        long primaryKey = phieuThongTinVeNguoiCoTienSu.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return (int) getPrimaryKey();
    }

    @Override
    public String toString() {
        StringBundler sb = new StringBundler(45);

        sb.append("{phieuThongTinVeNguoiCoTienSuId=");
        sb.append(getPhieuThongTinVeNguoiCoTienSuId());
        sb.append(", userId=");
        sb.append(getUserId());
        sb.append(", userName=");
        sb.append(getUserName());
        sb.append(", createDate=");
        sb.append(getCreateDate());
        sb.append(", modifiedDate=");
        sb.append(getModifiedDate());
        sb.append(", tienSuId=");
        sb.append(getTienSuId());
        sb.append(", maSoHoSoTienSuTuToaAn=");
        sb.append(getMaSoHoSoTienSuTuToaAn());
        sb.append(", nguoiTrichLuc=");
        sb.append(getNguoiTrichLuc());
        sb.append(", thamPhan=");
        sb.append(getThamPhan());
        sb.append(", soDinhDanhCaNhan=");
        sb.append(getSoDinhDanhCaNhan());
        sb.append(", chuThich=");
        sb.append(getChuThich());
        sb.append(", noiTamTruDiaChi=");
        sb.append(getNoiTamTruDiaChi());
        sb.append(", noiTamTruTinhId=");
        sb.append(getNoiTamTruTinhId());
        sb.append(", noiTamTruQuanHuyenId=");
        sb.append(getNoiTamTruQuanHuyenId());
        sb.append(", noiTamTruPhuongXaId=");
        sb.append(getNoiTamTruPhuongXaId());
        sb.append(", noiThuongTruDiaChi=");
        sb.append(getNoiThuongTruDiaChi());
        sb.append(", noiThuongTruTinhId=");
        sb.append(getNoiThuongTruTinhId());
        sb.append(", noiThuongTruQuanHuyenId=");
        sb.append(getNoiThuongTruQuanHuyenId());
        sb.append(", noiThuongTruPhuongXaId=");
        sb.append(getNoiThuongTruPhuongXaId());
        sb.append(", hoTenVoHoacChong=");
        sb.append(getHoTenVoHoacChong());
        sb.append(", hoTenCha=");
        sb.append(getHoTenCha());
        sb.append(", hoTenMe=");
        sb.append(getHoTenMe());
        sb.append("}");

        return sb.toString();
    }

    @Override
    public String toXmlString() {
        StringBundler sb = new StringBundler(70);

        sb.append("<model><model-name>");
        sb.append("qldc.pm.tiensu.model.PhieuThongTinVeNguoiCoTienSu");
        sb.append("</model-name>");

        sb.append(
            "<column><column-name>phieuThongTinVeNguoiCoTienSuId</column-name><column-value><![CDATA[");
        sb.append(getPhieuThongTinVeNguoiCoTienSuId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userId</column-name><column-value><![CDATA[");
        sb.append(getUserId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userName</column-name><column-value><![CDATA[");
        sb.append(getUserName());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>createDate</column-name><column-value><![CDATA[");
        sb.append(getCreateDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
        sb.append(getModifiedDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>tienSuId</column-name><column-value><![CDATA[");
        sb.append(getTienSuId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>maSoHoSoTienSuTuToaAn</column-name><column-value><![CDATA[");
        sb.append(getMaSoHoSoTienSuTuToaAn());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>nguoiTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNguoiTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>thamPhan</column-name><column-value><![CDATA[");
        sb.append(getThamPhan());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soDinhDanhCaNhan</column-name><column-value><![CDATA[");
        sb.append(getSoDinhDanhCaNhan());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>chuThich</column-name><column-value><![CDATA[");
        sb.append(getChuThich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruDiaChi</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruDiaChi());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruTinhId</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruTinhId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruQuanHuyenId</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruQuanHuyenId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruPhuongXaId</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruPhuongXaId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruDiaChi</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruDiaChi());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruTinhId</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruTinhId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruQuanHuyenId</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruQuanHuyenId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruPhuongXaId</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruPhuongXaId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoTenVoHoacChong</column-name><column-value><![CDATA[");
        sb.append(getHoTenVoHoacChong());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoTenCha</column-name><column-value><![CDATA[");
        sb.append(getHoTenCha());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoTenMe</column-name><column-value><![CDATA[");
        sb.append(getHoTenMe());
        sb.append("]]></column-value></column>");

        sb.append("</model>");

        return sb.toString();
    }
}
